import { View, Image } from "@tarojs/components";
import EmptyIcon from "@/assets/images/components/empty.png";
import "./index.scss";

export default function ({
  image = EmptyIcon,
  imageWidth = '318rpx',
  imageHeight = "294rpx",
  title = "暂无内容",
  offsetTop = 200,
  offsetBottom = 50
}) {
  return (
    <View className="empty-content" style={{ paddingTop: offsetTop + "rpx", paddingBottom: offsetBottom + 'rpx' }}>
      <Image src={image} style={{ width: imageWidth, height: imageHeight }} />
      <View>{title}</View>
    </View>
  );
}
